<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
<title>设备列表</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/pagejs.js"></script>
<script type="text/javascript">
/* $(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
 */
function deleteLab(labid){
 alert("===================");
   alert(labid);
   window.location.href="<%=basePath%>admin/deleteLaborary?laborary.labid="+labid;

  
}

function updateLab(labid){
 alert(labid);
 alert(labid);
 window.location.href="<%=basePath%>admin/findLaboraryById.action?labid="+labid;
}
</script>


</head>


<body>

	<div class="place">
    <span>位置</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">设备列表信息</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
    	  <li class="click"><a href="jsp/addclass.jsp"><span><img src="images/t01.png" /></span>添加</a></li>
        </ul>
        
        
        <ul class="toolbar1">
        <%-- <li><span><img src="<%=basePath%>images/t05.png" /></span>è®¾ç½®</li> --%>
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th><input name="" type="checkbox" value="" checked="checked"/></th>
        <th>序号<i class="sort"><img src="images/px.gif" /></i></th>
        <th>设备类别名称</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <s:iterator value="pageingFinder.dataList" var="equipment" status="index">
        <tr>
        <td><input name="" type="checkbox" value="" /></td>
        <td><s:property value="#index.index+1"/></td>
        <td>${equipment.classname}</td>
        <td>
        <a href="admin/deleteClass?id=${equipment.id}">删除</a>
         </td>
        </tr> 
        </s:iterator>
        </tbody>
    </table>
    
   <form action="admin/pageEquipment.action" id="pageForm">
       <div class="pagin">
    	<div class="message">共<i class="blue">${pageingFinder.rowCount}</i>条记录<i class="blue">当前第${pageingFinder.pageNo}/${pageingFinder.pageCount}</i>页</div>
        <ul class="paginList">
        <s:if test="pageingFinder.pageNo > 1">
        <li class="paginItem"><a href="javascript:first()"><span class="pagepre">首页</span></a></li>
        <li class="paginItem"><a href="javascript:previous()"><span class="pagenxt">上一页</span></a></li>
        </s:if>
         <s:if test="pageingFinder.pageNo < pageingFinder.pageCount">
        <li class="paginItem"><a href="javascript:next()"><span class="pagepre">下一页</span></a></li>
        <li class="paginItem"><a href="javascript:last()"><span class="pagenxt">尾页</span></a></li>
        </s:if>
       <li> 转到第<input  name="pageingFinder.pageNo" id="inputPage" type="text" class="sinput"/>页
         <input type="hidden" id="hiddenPagge" value="${pageingFinder.pageCount }"/>
        <input name="" type="submit"  class="cancel" value="转" /></li>
        </ul>
    </div>
    </form>
    </div>
    </div>
</body>

</html>
